<?php

namespace App\Admin\Displayers;

use Dcat\Admin\Grid\Displayers\Actions as DisplayersActions;

class Actions extends DisplayersActions
{
    /**
     * @return string
     */
    protected function getViewLabel()
    {
        $label = trans('admin.show');

        return "<span><i title='{$label}' class=\"feather icon-eye grid-action-icon\"></i>显示</span>";
    }

    
    /**
     * @return string
     */
    protected function getEditLabel()
    {
        $label = trans('admin.edit');

        return "<span><i title='{$label}' class=\"feather icon-edit grid-action-icon\"></i>编辑</span>";
    }

    

    /**
     * @return string
     */
    protected function getQuickEditLabel()
    {
        $label = trans('admin.quick_edit');

        return "<span><i title='{$label}' class=\"feather icon-edit grid-action-icon\"></i>编辑</span>";
    }
    
    /**
     * @return string
     */
    protected function getDeleteLabel()
    {
        $label = trans('admin.delete');

        return "<span class='text-danger'><i class=\"feather icon-trash grid-action-icon\" title='{$label}'></i>删除</span>";
    }
}
